Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@modulz/radix-icons
Advanced tools
A crisp ⧉ icon set built by the Modulz team.
➤ Visit the Icons page to explore further.
All icons are sourced from a single-source-of-truth Figma file, and made available as React Components and individual SVGs.
All Icons are available as individual React Components.
import { CameraIcon } from '@modulz/radix-icons';
render(<CameraIcon size="25" type="outline" />);
Icons can be discovered on the Icons page.
All SVGs in the set are available in the package, and can be accessed with the following path-pattern from node_modules
:
'@modulz/radix-icons/<type>/<size>/<name>.svg';
By using a bundler (such as Webpack, Parcel or Rollup) you can pull an SVG in to JavaScript or CSS.
in JS
import svgUrl from '@modulz/radix-icons/outline/25/camera.svg';
in CSS
.camera-icon {
background-image: url(~@modulz/radix-icons/outline/25/camera.svg);
width: 25px;
height: 25px;
}
The manifest of the Icon Set lists the SVGs via their hierarchy - it can be used to dynamically consume the the Icon Set.
import iconManifest from '@modulz/radix-icons/manifest.json';
console.log(iconManifest);
{
"outline": {
":25": {
"camera": "outline/25/camera.svg"
}
}
}
We intend to formalise the schema of the manifest in a larger effort to support importing Icon Sets to Modulz through NPM.
There are many ways to contribute to the Icon Set. Please first create an issue with your proposal, and from there we can start a conversation.
To run yarn generate-src
you'll need to:
.env
file under the FIGMA_ACCESS_TOKEN
var.Further instructions can be found in the readme for @modulz/generate-icon-lib
.
Access the Figma file, make changes, then run yarn generate-src
and open a PR.
There are a couple things to keep in mind when making changes:
type
and size
groupingstype
and size
of the last top-level frame becomes the default values for the React ComponentThe Figma file should contain additional guidelines for making changes.
Have a look in packages/generate-icon-lib/src/templates
for the templating code that affects the components created by running yarn generate-src
.
Makes changes to the CLI, then re-run yarn generate-src
, then open a PR. Try to keep commits separated between the CLI and files created in this package.
At the time of writing, the CLI can not rerun on existing SVGs, and will instead pull down the latest SVGs from the Figma file.
Jump into an .md
file, make edits, and open a PR.
MIT License
Copyright (c) 2019 Modulz, Inc
FAQs
Radix Icon Set
The npm package @modulz/radix-icons receives a total of 2,088 weekly downloads. As such, @modulz/radix-icons popularity was classified as popular.
We found that @modulz/radix-icons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.